/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package analex;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @author Pedrom
 */
public class Delimiters {

    private Map<String, String> delimiters = new HashMap<String, String>();

    public Delimiters() {
        delimiters.put(";", "delimiter");
        delimiters.put(",", "delimiter");
        delimiters.put("(", "delimiter");
        delimiters.put(")", "delimiter");
        delimiters.put("{", "delimiter");
        delimiters.put("}", "delimiter");
        delimiters.put("[", "delimiter");
        delimiters.put("]", "delimiter");
    }

    public boolean isDelimiter(String key) {
        return delimiters.containsKey(key);
    }
}
